
package Network;

/**
 * Class to represent a CellEntryMessage, received when a tag enters a cell.
   Copyright (C) 2009 BBC Research, Sam Davies, <Sam.Davies@bbc.co.uk>

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.


 */
public class CellEntryMessage extends Message{

    /**
     * Creates a new instance of a Cell Entry Message object.
     * 
     * @param messageType the Cell entry message hex type 0x1B1
     * @param tag_id_bottom Tags unique ID
     * @param slot Time slot of the tag
     * @param cell Cell the tag has entered.
     */
   
    public CellEntryMessage(char messageType, long tag_id_bottom, long slot, long cell) {
        super(messageType, tag_id_bottom, slot, cell);
    }

    @Override
    public String toString() {
        return ("Cell Entry Message. Tag Id; " + this.getTag_id_bottom() + ", slot; " + this.getSlot() + ", cell; " + this.getCell());
    }
}
